<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var person = {};
        person.name = '王二'; //person为一个对象，name，age，sex，height为person对象的属性
        person.age = 35;
        person.sex = '男';
        person.height = '100';
        document.write(person.name);
    </script>
</body>

</html>